package com.plian.system.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: 首页消息列表
 * @author: gangan
 * @create: 2021-01-13 14:40
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_message")
@Api(value = "首页消息", tags = "首页消息")
public class Message {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增id")
    private Integer id;

    @ApiModelProperty(value = "单据id")
    private String formId;

    @ApiModelProperty(value = "单位名称")
    private String orgName;

    @ApiModelProperty(value = "单位id")
    private String orgId;

    @ApiModelProperty(value = "单据类型")
    private String formType;

    @ApiModelProperty(value = "单据类型名称")
    private String formTypeName;

    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "消息时间")
    private Date messageTime;

    @ApiModelProperty(value = "单据创建人")
    private String createUser;

    @ApiModelProperty(value = "消息提示内容")
    private String message;

    @ApiModelProperty(value = "是否忽略 1是")
    private Integer isIgnore;

    @ApiModelProperty(value = "下发人Id")
    private String sendUser;

    @ApiModelProperty(value = "下发人名字")
    private String sendUserName;

    @ApiModelProperty(value = "企业id")
    private String companyId;

    @ApiModelProperty(value = "企业名称")
    private String companyName;

    @ApiModelProperty(value = "预算填报year")
    private String budgetFillYear;

    @ApiModelProperty(value = "预算填报summaryCode")
    private String budgetFillSummaryCode;

    @ApiModelProperty(value = "是否查看:0-否：1-是")
    @TableField(exist = false)
    private Integer isLook;


}
